var incard;
var movecard;
var writecard;
var readcard;
var cardtype;

function CardSender_ctrl_cardin(data, callback) {
    incard = callback;
    window.external.InCard(data, "inCard_callback");
}

function inCard_callback(json) {
    incard(json);
}

function CardSender_move_card(data, callback) {
    movecard = callback;
    window.external.MoveCard(data, "moveCard_callback");
}

function moveCard_callback(json) {
    movecard(json);
}

function CardSender_writeAndOut(data, callback) {
    writecard = callback;
    window.external.WriteCard(data, "writeCard_callback");
}

function writeCard_callback(json) {
    writecard(json);
}

function CardSender_readCard(data, callback) {
    readcard = callback;
    window.external.ReadCard(data, "readCard_callback");
}

function readCard_callback(json) {
    readcard(json);
}

function CardSender_getType(data, callback) {
    cardtype = callback;
    window.external.CardType(data, "cardType_callback");
}
function cardType_callback(json) {
    cardtype(json);
}
